Skip to main content

All VLPs

All VLPs

Queries all the VLP contract addresses and specifies the tokens for each.

query All_vlps($max: [String], $min: [String], $skip: Int, $limit: Int) {
router {
all_vlps(max: $max, min: $min, skip: $skip, limit: $limit) {
vlps {
vlp
token_1
token_2
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://api.euclidprotocol.com/graphql' \
--data '{"query":"query All_vlps($max: [String], $min: [String], $skip: Int, $limit: Int) {\n router {\n all_vlps(max: $max, min: $min, skip: $skip, limit: $limit) {\n vlps {\n vlp\n token_1\n token_2\n }\n }\n }\n}","variables":{"max":["pepe","usdt"],"min":["eth","usdc"],"skip":null,"limit":null}}'

Open in Playground

Arguments

  • max (String, String): The upper limit token pair that should be returned. Does not include the specified max value.
  • min (String, String): The lower limit token pair to start from. Includes the specified min value.
  • skip (Int): The number of results to skip in the response.
  • limit (Int): The maximum number of results to return.

Return Fields

FieldTypeDescription
vlpsVLPInfoThe VLP information within the router contract.

VLPInfo

FieldTypeDescription
vlpStringThe VLP contract address.
token_1StringThe identifier of the first token in the pair.
token_2StringThe identifier of the second token in the pair.